class CourseItem {
  String? itemId;
  String? type;
  String? title;
  String? imageUrl;
  String? popularity;
  String? price;

  CourseItem(
      {this.itemId,
      this.type,
      this.title,
      this.imageUrl,
      this.popularity,
      this.price});

  CourseItem.fromJson(Map<String, dynamic> json) {
    itemId = json['itemId'];
    type = json['type'];
    title = json['title'];
    imageUrl = json['imageUrl'];
    popularity = json['popularity'];
    price = json['price'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['itemId'] = this.itemId;
    data['type'] = this.type;
    data['title'] = this.title;
    data['imageUrl'] = this.imageUrl;
    data['popularity'] = this.popularity;
    data['price'] = this.price;
    return data;
  }
}
